<?php
  /**
   * iJDocumentation
   *
   * The iJDocumentation class 
   *
   * @copyright Copyright (c) 2011, iJBloks Progect
   */
    class Documentation extends iJBlock{
        
        /**
         *
         * Class Constructuctor
         * @access public
         */
        public function __construct() {
    
        }
        
        
        /**
         * execute
         *
         * Executes the block to generate the tokens
         *
         * @return array Array with the tokens of the block
         *
         * @access public
         */
        public function execute() {
         // require_once(DIR_EXTERNAL . 'javaScripts/jstree/_demo/config.php');
          if(isset($_GET['operation'])) {
            iJFactory::includeClass('iJJsTreeOperations');
            $operation = $_GET['operation'];
            switch ($operation) {
              case 'get_children':
                echo iJJsTreeOperations::get_children($_GET);
                break;
            }
             
            die();
          }
          return parent::execute();
        }
        
    }
?>